package ink.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("logistics_buy")
@NoArgsConstructor
public class LogisticsBuy implements Serializable {

    private static final long serialVersionUID = 1L;

    public LogisticsBuy(String name, String phone, String address) {
        this.name = name;
        this.phone = phone;
        this.address = address;
    }

    /**
     * 购买业务物流
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 购买业务订单id
     */
    @TableField("buy_order_id")
    private String buyOrderId;

    /**
     * 物流号
     */
    @TableField("number")
    private String number;

    /**
     * 客户姓名
     */
    @TableField("name")
    private String name;

    /**
     * 客户手机号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 客户地址
     */
    @TableField("address")
    private String address;

    /**
     * 是否已经发货
     */
    @TableField("send")
    private Boolean send;

    /**
     * 图片凭证
     */
    @TableField("image_url")
    private String imageUrl;

    /**
     * 发送费用
     */
    @TableField("send_cost")
    private BigDecimal sendCost;

    /**
     * 备份字段(为机器型号)
     */
    @TableField("remarks")
    private String remarks;


}
